HAL FDCAN macros migration

This section provides information about the HAL FDCAN macros migration.

HAL FDCAN get and clear flag

HAL1

HAL2

#define __HAL_FDCAN_CLEAR_FLAG
/* or */
#define __HAL_FDCAN_GET_FLAG
In HAL1, these macros were used to check and clear the clock calibration status through multiple steps.
In HAL2, this process is simplified by the function HAL_FDCAN_CCU_GetCalibrationLevelAndClearFlag(), which performs both actions internally,
and the macros have been removed.

HAL FDCAN disable IT macro

HAL1

HAL2

#define __HAL_FDCAN_DISABLE_IT
Removed. use HAL_FDCAN_DisableInterrupts instead.

HAL FDCAN enable IT macro

HAL1

HAL2

#define __HAL_FDCAN_ENABLE_IT
Removed. use HAL_FDCAN_EnableInterrupts instead.

HAL FDCAN get flag and IT macros

HAL1

HAL2

#define __HAL_FDCAN_CLEAR_IT
/* or */
#define __HAL_FDCAN_GET_IT
These macros were removed in HAL2. Their functionality was internal to the HAL
and did not affect user-level operations.

HAL FDCAN get IT source macro

HAL1

HAL2

#define __HAL_FDCAN_GET_IT_SOURCE
Removed. use HAL_FDCAN_IsEnabledInterrupt instead.

HAL FDCAN reset handle state macro

HAL1

HAL2

#define __HAL_FDCAN_RESET_HANDLE_STATE
Removed: Use HAL_FDCAN_DeInit() instead.

HAL FDCAN TT clear flag macro

HAL1

HAL2

#define __HAL_FDCAN_TT_CLEAR_FLAG
Removed: TTCAN not supported in HAL2

HAL FDCAN TT clear IT macro

HAL1

HAL2

#define __HAL_FDCAN_TT_CLEAR_IT
Removed: TTCAN not supported in HAL2

HAL FDCAN TT disable IT macro

HAL1

HAL2

#define __HAL_FDCAN_TT_DISABLE_IT
Removed: TTCAN not supported in HAL2

HAL FDCAN TT enable IT macro

HAL1

HAL2

#define __HAL_FDCAN_TT_ENABLE_IT
Removed: TTCAN not supported in HAL2

HAL FDCAN TT get flag macro

HAL1

HAL2

#define __HAL_FDCAN_TT_GET_FLAG
Removed: TTCAN not supported in HAL2

HAL FDCAN TT get IT macro

HAL1

HAL2

#define __HAL_FDCAN_TT_GET_IT
Removed: TTCAN not supported in HAL2

HAL FDCAN TT get IT source macro

HAL1

HAL2

#define __HAL_FDCAN_TT_GET_IT_SOURCE
Removed: TTCAN not supported in HAL2